import java.util.Scanner;
public class pp32
{
   public static void main (String[] args)
     {
       int num,num1;
       double a;
       Scanner scan = new Scanner (System.in);
       System.out.println ("Enter the num: ");
        num = scan.nextInt();
       System.out.println ("Enter the num1: ");
        num1 = scan.nextInt();
       System.out.println();
        
       a = Math.pow(num,3) + Math.pow(num1,3);
       System.out.println ("Anwer: " + a);
     }

}
